<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<c:if test="${not empty creditProducts}">

  <c:forEach items="${creditProducts }" var="cp">
    <li class="item-content">
      <div class="item-media">
        <img src="${cloud.prod}/${cp.cover}-0.6" class="product-cover">
      </div>
      <div class="item-inner">
        <div class="item-title-row">
          <div class="item-title">${cp.name }</div>
        </div>
        <div class="item-subtitle">
          <span>${cp.currentPrice}</span>积分
        </div>
      </div>
      <div class="item-after">
        <a href="${ctx.host}/credit-mall/products/${cp.id}" class="button exchange-button">兑换</a>
      </div>
    </li>
  </c:forEach>
</c:if>
